import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/account/login'
import DingTal from '@/components/account/DingTal'
import home from '@/components/home/home'
import index from '@/components/main/index'
import Operator from '@/components/System/Operator'
import log from '@/components/System/log'
import sys from '@/components/System/sys'
import dictionary from '@/components/Basics/dictionary'
import sales from '@/components/Basics/sales'
import project from '@/components/Basics/project'
import custom from '@/components/Basics/custom'
import client from '@/components/Business/client'
import salesMan from '@/components/Business/salesMan'

Vue.use(Router)

export default new Router({
//	linkActiveClass: 'actived',
    routes: [
    	{
            path: '/',
            name: 'Dtal',
            component: DingTal
       	},
    	{
            path: '/login',
            name: 'login',
            component: login
        },
        {
            path: '/home',
            name: 'home',
            component: home,
            children: [{
                    path: '/index',
                    name: 'index',
                    component: index
                },
                {
                    path: '/Operator',
                    name: 'Operator',
                    component: Operator
                },
                {
                    path: '/log',
                    name: 'log',
                    component: log
                },
                {
                    path: '/sys',
                    name: 'sys',
                    component: sys
                },
                {
                    path: '/dictionary',
                    name: 'dictionary',
                    component: dictionary
                },
                {
                    path: '/sales',
                    name: 'sales',
                    component: sales
                },
                {
                    path: '/project',
                    name: 'project',
                    component: project
                },
                {
                    path: '/custom',
                    name: 'custom',
                    component: custom
                },
                {
                    path: '/client',
                    name: 'client',
                    component: client
                },
                {
                    path: '/salesMan/:id',
                    name: 'salesMan',
                    component: salesMan
                }
            ]
        }
    ]
})